import { types } from "mobx-state-tree"

export const GlobalStoreModel = types
  .model("GlobalStoreModel", {
    theme: "light"
  })
  .actions(self => ({
    changeTheme(text: string) {
      console.log(text)
      self.theme = text
    }
  }))
